{% extends 'base/base.html' %}
{% block title %} {{ page_name }} {% endblock title %}
{% block stylesheets %}
    {{ block.super }}
{% endblock %}
{% block content %}
    <div class="right_col" role="main">
        <div class="">
            <div class="clearfix"></div>

            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_title">
                            <div class="loading"></div>
                            <h2>salt历史任务 </h2>
                            <ul class="nav navbar-right panel_toolbox">
                                <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                </li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="#">Settings 1</a>
                                        </li>
                                        <li><a href="#">Settings 2</a>
                                        </li>
                                    </ul>
                                </li>
                                <li><a class="close-link"><i class="fa fa-close"></i></a>
                                </li>
                            </ul>
                            <div class="clearfix"></div>
                        </div>
                        <form class="form-horizontal form-border" method="get" action="" name="formName">
                            <div class="x_content table-responsive" style="border:none">
                                <table id="datatable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th>jid</th>
                                        <th>Target</th>

                                        <th>Arguments</th>
                                        <th>StartTime</th>
                                        <th>User</th>
                                        {% if perms.asset.edit_asset %}
                                            <th>操作</th>
                                        {% endif %}
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {% for each in his %}
                                        <tr>
                                            <td>{{ each.jid }}</td>
                                            <td>{{ each.Target }}</td>
                                            <td>{{ each.Arguments }}</td>
                                            <td>{{ each.StartTime }}</td>
                                            <td>{{ each.User }}</td>
                                            {% if perms.asset.edit_asset %}
                                                <td>
                                                    <a href="#" class="btn btn-success btn-sm" role="button"><i class="fa fa-eye"></i>查询</a>
                                                </td>
                                            {% endif %}
                                        </tr>
                                    {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block javascripts %}
    {{ block.super }}
    <script src="/static/custom/js/custom_new.js"></script>
{% endblock %}